var express = require('express')
// var serve = require('./serve')
var userRouter = require('./routers/userRouter')

var router = express.Router()

router
    .get('/',(req,res)=>{userRouter.getUserInfo(req,res)})//获取用户信息
    .post('/addUserInfo',(req,res)=>{userRouter.addUserInfo(req,res)})//添加用户信息
    .get('/getOprateLog',(req,res)=>{userRouter.getOprateLog(req,res)})//获取操作日志
    .post('/oprateLog',(req,res)=>{userRouter.oprateLog(req,res)})//添加操作日志
    .get('/getRoomCreat',(req,res)=>{userRouter.getRoomCreat(req,res)})//获取房间信息
    .post('/roomCreat',(req,res)=>{userRouter.roomCreat(req,res)})//创建房间

module.exports = router
